home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / m&tcga / gdraws.h < prev    next >
Text File  |  1988-06-04  |  2KB  |  56 lines

  1. float bs_blend(int i, int n, float u);
  2. void drawArc (int xc, int yc, int b, int start_angle,int end_angle,
  3.          int color, float aspect);
  4. void drawBezier(int segments,int color,...);
  5. void drawBspline(int segments, int color,...);
  6. void drawLine(int x1, int y1, int x2, int y2, int color);
  7. void drawOval(int x, int y, int b, int color, float aspect);
  8. void drawPoly(int color, ...);
  9. void drawRect(int x1, int y1, int x2, int y2, int color);
  10. void drawRoundRect(int x1, int y1, int x2, int y2, int b, int color);
  11. void fillArc (int xc, int yc, int b, int start_angle,int end_angle,
  12.          int color, float aspect);
  13. void fillArc1 (int xc, int yc,int x, int y, int sector,
  14.          int arcTest[], int x_start_test, int x_end_test, int color);
  15. void fillOval(int x, int y, int r, int color, float aspect);
  16. void fillPoly(int color, ...);
  17. void fill2Poly(int color,int point[600]);
  18. void fillRect(int x1, int y1, int x2, int y2, int color);
  19. void fillRoundRect(int x1, int y1, int x2, int y2, int r, int color);
  20. void plot(int x, int y, int color);
  21. void plots(int x, int y, int color);
  22. void plotArc1 (int x, int y, int sector, int color,
  23.          int arcTest[], int x_start_test, int x_end_test);
  24. void plotArc2 (int x, int y, int sector, int color,
  25.          int arcTest[], int x_start_test, int x_end_test);
  26. void plot_char(int x, int y, int char_offset,int color, int type);
  27. void sort(int index, int x_coord[], int y_coord[]);
  28. void write_horz_char(int x, int y, int ch, int color);
  29. void write_vert_char(int x, int y, int ch, int color);
  30. void write_horz_str(int x, int y, char *string, int color);
  31. void write_vert_str(int x, int y, char *string, int color);
  32. void write_big_char(int x, int y, int ch, int color);
  33. void write_vid_char(int x, int y, int ch, int color);
  34. void write_big_str(int x, int y, char *string, int color);
  35. void write_vid_str(int x, int y, char *string, int color);
  36.  
  37. extern int OPERATOR, LINEWIDTH, ANGLE, XCENTER, YCENTER;
  38. extern unsigned long PATTERN, style[8];
  39.  
  40. #define CGA
  41.  
  42. #ifdef VGA
  43. #define convert(x,y)      {x = (x + 319);  y = (240 - y);}
  44. #endif
  45.  
  46. #ifdef EGA
  47. #define convert(x,y)      {x = (x + 319);  y = (175 - ((93*y) >> 7));}
  48. #endif
  49.  
  50. #ifdef CGA
  51. #define convert(x,y)      {x = ((x >> 1) + 159);  y = (100 - ((53*y) >> 7));}
  52. #endif
  53.  
  54.  
  55.  
  56.